package com.bjsxt.system.pojo;

import java.sql.Date;
import java.util.Set;

public class Region
{
	private int id;
	private int parentId;
	private String name;
	private String pinyin;
	private String areacode;
	private String content;
	private byte leafStatus;
	private byte status;
	private Date updateTime;
	private Date createTime;
	private Date publicTime;
	private String statuStr;
	/* 自己关联自己 既是一对多也是多对一 */
	private Region region;
	private Set<Region> regionSet;
	public Region getRegion()
	{
		return region;
	}

	public void setRegion(Region region)
	{
		this.region = region;
	}

	public Set<Region> getRegionSet()
	{
		return regionSet;
	}

	public void setRegionSet(Set<Region> regionSet)
	{
		this.regionSet = regionSet;
	}

	

	public String getStatuStr()
	{
		if (this.status == 1)
		{
			return "启用";
		} else
		{
			return "禁用";
		}
	}

	public void setStatuStr(String statuStr)
	{
		this.statuStr = statuStr;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getParentId()
	{
		return parentId;
	}

	public void setParentId(int parentId)
	{
		this.parentId = parentId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getPinyin()
	{
		return pinyin;
	}

	public void setPinyin(String pinyin)
	{
		this.pinyin = pinyin;
	}

	public String getAreacode()
	{
		return areacode;
	}

	public void setAreacode(String areacode)
	{
		this.areacode = areacode;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

	public byte getLeafStatus()
	{
		return leafStatus;
	}

	public void setLeafStatus(byte leafStatus)
	{
		this.leafStatus = leafStatus;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getPublicTime()
	{
		return publicTime;
	}

	public void setPublicTime(Date publicTime)
	{
		this.publicTime = publicTime;
	}

	@Override
	public String toString()
	{
		return "Region [id=" + id + ", parentId=" + parentId + ", name=" + name + ", pinyin=" + pinyin + ", areacode="
				+ areacode + ", content=" + content + ", leafStatus=" + leafStatus + ", status=" + status
				+ ", updateTime=" + updateTime + ", createTime=" + createTime + ", publicTime=" + publicTime + "]";
	}

	public Region(int id, int parentId, String name, String pinyin, String areacode, String content, byte leafStatus,
			byte status, Date updateTime, Date createTime, Date publicTime)
	{
		super();
		this.id = id;
		this.parentId = parentId;
		this.name = name;
		this.pinyin = pinyin;
		this.areacode = areacode;
		this.content = content;
		this.leafStatus = leafStatus;
		this.status = status;
		this.updateTime = updateTime;
		this.createTime = createTime;
		this.publicTime = publicTime;
	}

	public Region()
	{
		super();
	}
}
